<%--
  Created by IntelliJ IDEA.
  User: 67380
  Date: 2016/10/25
  Time: 8:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
    <%--<link rel="stylesheet" href="/css/uniform.css" />--%>
    <link rel="stylesheet" href="/css/select2.css" />
    <link rel="stylesheet" href="/css/matrix-style.css" />
    <link rel="stylesheet" href="/css/matrix-media.css" />
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
    <style type="text/css">
        .datatablebtn{
            float: right;
            margin-top: 3px;
        }

    </style>
</head>
<body style="background-color: transparent">
<div class="widget-box">
    <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
        <h5>学科点负责人管理</h5>
        <button class="btn btn-info datatablebtn" onclick="add()">增加</button>
        <form id="studentform" method="post" enctype="multipart/form-data" action="/teaexcel">
            <input type="file" name="file" style="display: none" id="excelimport">
            <button type="submit"></button>
        </form>
    </div>
    <div class="widget-content nopadding">
        <table class="table table-bordered data-table" style="width: 100%">
            <thead>
            <tr>
                <th>账号</th>
                <th>学院</th>
                <th></th>
                <th></th>
            </tr>
            </thead>
            <c:forEach items="${managerList}" var="manager">
                <tr>
                    <td>${manager.mname}</td>
                    <td>${manager.college}</td>
                    <td><button type="button" class="btn btn-mini btn-info" onclick="detail('${manager.mname}')">详细</button> </td>
                    <td><button type="button" class="btn btn-mini btn-danger" onclick="deleterow('${manager.mname}')">删除</button> </td>
                </tr>
            </c:forEach>
        </table>
    </div>

</div>

</body>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery.ui.custom.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.uniform.js"></script>
<script src="/js/select2.min.js"></script>
<script src="/js/jquery.dataTables.min.js"></script>
<script src="/js/matrix.js"></script>
<script src="/js/matrix.tables.js"></script>

<script>
    function excelimport() {
        $("#excelimport").click();

    }
    $("#excelimport").change(function () {
        $("#studentform button").click();
    })
    function deleterow(carid) {
        if(confirm("是否确定删除")){
            window.location.href="/coldelete?cardid="+carid;
        }
    }
    function detail(carid) {

            window.location.href="/coldetail?cardid="+carid;

    }
    function add() {
        window.location.href="/coladd"

    }
</script>

</html>
